package com.cy.pj.sys.web响应标准和全局异常处理;

import lombok.Data;

@Data
public class JsonResult {
    private Integer state=1;
    private String message="ok";
    private Object data;
    public JsonResult(){}
public JsonResult(String message){
this.message=message;
}
public JsonResult(Object data){
    this.data=data;
}
public JsonResult(Throwable e){
    this.state=0;
    this.message=e.getMessage();
}
public JsonResult(int state,String message){
        this.state=0;
        this.message=message;
}





}
